package com.chinasofti.collection;

import java.util.ArrayList;
import java.util.Collection;

public class Demo05 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        //添加元素
        c.add("a");
        c.add("b");
        c.add("c");
        for (String a:c){
            a = "b";
            System.out.println(a);
        }
    }
}
